<template>
  <!-- 公告详情 -->
  <div class="AnnouncementDetail">
    <div class="side_1"></div>
    <span class="add_1">日志详情</span>
    <el-button type="info" class="btn_fanhui" icon="el-icon-back" @click="Fh">返回</el-button>
    <div class="content-box">
      <div class="Title-box">{{item.type}}</div>
      <p class="explain-box">{{item.main}}</p>
      <div class="bottom-box">
        <div class="leftnav-box"></div>
        <div class="rightnav-box">
          <ul>
            <li>日志类型：{{item.type}}</li>
            <li>创建时间：{{item.createOn}}</li>
            <li>创建部门：{{item.departName}}</li>
            <li>创建人：{{item.creater}}</li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import axios from "axios";
export default {
  data () {
    return {
      item: {},
      id: "",
    };
  },
  created () {
    this.id = this.$route.query.e;
    this.getData();
  },

  methods: {
    Fh () {
      window.history.go(-1);
    },
    //  获取详情数据
    getData () {
      var obj = { id: this.id };
      var objs = JSON.stringify(obj); let the = { index: 7, jsondata: objs };
      console.log(obj)
      axios.post("/apis/MyCenter.asmx/GetData", the).then(({ data }) => {
        var list = JSON.parse(data.d);
        if (list == null) { this.$message.error("数据异常"); } else { this.item = list; }
      })
    },
  }
};
</script>
<style lang="scss" scoped>
@import '@/assets/scss/base.scss';
.side_1 {
  width: 5px;
  height: 16px;
  background-color: $Header_color;
  margin-left: 10px;
  margin-top: 30px;
}
.add_1 {
  margin-left: 20px;
  margin-top: -20px;
  float: left;
  font-size: 18px;
  font-weight: 400;
}
.btn_fanhui {
  margin-top: -20px;
  margin-right: 20px;
  float: right;
}

.content-box {
  width: 98%;
  height: 700px;
  margin-top: 40px;
  margin-left: 20px;

  background-color: $white;
}
.Title-box {
  width: 96%;
  height: 80px;
  line-height: 80px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 1px solid $bordercolor;
  margin-left: 15px;
  color: #323232;
}

.explain-box {
  display: inline-block;
  height: 380px;
  text-indent: 25px;
  line-height: 35px;
  padding: 60px 5%;
  //  border: 1px solid red;
  width: 87%;
  margin-left: 15px;
  border-bottom: 1px solid $bordercolor;
  color: #333;
}
.bottom-box {
  width: 100%;
  height: 100px;
  display: flex;
  // border: 1px solid red;
  color: #323232;
}
.leftnav-box {
  width: 35%;
  height: 100px;
  // border: 1px solid red;
}
.rightnav-box {
  flex: 1;
  // border: 1px solid red;
}
.rightnav-box ul {
  overflow: hidden;
}
.rightnav-box li {
  width: 20%;
  height: 100px;
  line-height: 100px;
  text-align: center;
  float: left;
  font-size: 13px;

  // border: 1px solid red;
}
</style>